<template>
	<view>
		<view class="ftx-footer">
			<!-- <view class="copyright-wrap">
				<view class="copyright-item">
					<u-text color="#999" :size="22" text="上海方天下国际旅行社有限公司"></u-text>
				</view>
				
				<view class="sep-line"></view>
				
				<view class="copyright-item">
					<u-text color="#999" :size="22" text="版权所有"></u-text>
				</view>
			</view> -->
			
			<view class="pricacy-wrap">
				<view class="pricacy-item" @click="jump('agreement')">
					<u-text color="#999" :size="22" text="用户协议"></u-text>
				</view>
				
				<view class="sep-line"></view>
				
				<view class="pricacy-item" @click="jump('privacy')">
					<u-text color="#999" :size="22" text="隐私政策"></u-text>
				</view>
				
				<!-- <view class="sep-line"></view>
				
				<view class="pricacy-item" @click="jump('aboutus')">
					<u-text color="#999" :size="22" text="关于我们"></u-text>
				</view> -->
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"ftx-footer",
		data() {
			return {
				
			};
		},
		methods: {
			jump: (type) => {
				let _url = ''
				if ( type == 'agreement' ) {
					_url = '/pagesA/pages/agreement/agreement'
				}
				
				if ( type == 'privacy' ) {
					_url = '/pagesA/pages/privacy/privacy'
				}
				
				if ( type == 'aboutus' ) {
					_url = '/pagesA/pages/aboutus/aboutus'
				}
				if ( _url ) {
					return uni.navigateTo({
						url: _url
					})
				}
				
				return uni.showToast({
					title: '路由错误'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.ftx-footer {
	@include flex;
	flex-direction: column;
	position: fixed;
	width: 100%;
	bottom: 60rpx;
	padding: 10rpx 0;
	align-items: center;
	.pricacy-wrap {
		@include flex;
		justify-content: center;
		align-items: center;
		margin-bottom: 20rpx;
		.sep-line {
			width: 1rpx;
			height: 22rpx;
			background-color: $uni-text-color-disable;
			margin: 0 16rpx;
		}
		.pricacy-item {
			@include flex;
			justify-content: center;
			
		}
	}
	
	.copyright-wrap {
		@include flex;
		justify-content: center;
		align-items: center;
		margin-bottom: 20rpx;
		.sep-line {
			width: 1rpx;
			margin: 0 16rpx;
		}
		.copyright-item {
			@include flex;
			justify-content: center;
			
		}
	}
}
</style>